package com.zs.blog.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Title: RoleListDTO
 * @Author zs
 * @Package com.zs.blog.model.dto
 * @Date 2025/8/19 23:59
 * @description: 角色列表数据转换对象
 */
@Data
public class RoleListDTO {
    @Schema(description = "角色ID")
    public Long id;

    @Schema(description = "角色名称")
    public String roleName;

    @Schema(description = "角色编码")
    public String roleCode;

    @Schema(description = "是否禁用[0:启用，1:禁用 ]")
    public Integer isDisabled;

    @Schema(description = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd hh-mm-ss", shape = JsonFormat.Shape.STRING)
    public LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd hh-mm-ss", shape = JsonFormat.Shape.STRING)
    public LocalDateTime updateTime;
}
